<div>
    <div class="modal-body" th:object="${department}">
        <input type="hidden" name="departmentId" th:value="*{departmentId}">
        <div class="form-group row">
            <label for="departmentName" class="col-form-label col-sm-3">院部名称:</label>
            <input type="text" class="form-control col-sm-8" id="departmentName" name="departmentName" th:value="*{departmentName}" placeholder="请输入院部名称" required>
        </div>
        <div class="form-row">
            <div class="form-group row col-sm-6">
                <label for="teacherName" class="col-form-label col-sm-6">教师名称:</label>
                <input type="text" class="form-control col-sm-5" id="teacherName"  th:value="*{teacherInfo}!=null?*{teacherInfo.teacherName}:''" readonly>
            </div>
            <div class="form-group row col-sm-6">
                <label for="teacherNumber" class="col-form-label col-sm-4 ">工号:</label>
                <input type="text" class="form-control col-sm-8" id="teacherNumber" name="teacherNumber"  th:value="*{teacherInfo}!=null?*{teacherInfo.teacherNumber}:''" onkeyup="this.value=this.value.replace(/[^\0-9\.]/g,'');" placeholder="请输入教师工号"  required>
            </div>
        </div>

        <div class="form-group row">
            <label for="departmentTel" class="col-form-label col-sm-3">联系电话:</label>
            <input type="text" class="form-control col-sm-8" id="departmentTel" name="departmentTel" th:value="*{departmentTel}" placeholder="请输入联系电话" maxlength="11" required>
        </div>

        <div class="form-group">
            <label for="departmentIntro" class="col-form-label">简介:</label>
            <textarea class="form-control" id="departmentIntro" name="departmentIntro"  rows="3" style="resize: none">[[*{departmentIntro}]]</textarea>
        </div>

    </div>
    <div class="modal-footer">
        <input class="btn btn-primary"type="submit" value="提交">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" id="departmentDialogClose">Close</button>
    </div>
</div>